<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<!-- 引入ElementUI样式
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme- chalk/index.css">
<script src="https://unpkg.com/vue/dist/vue.js"></script>
&lt;!&ndash; 引入ElementUI组件库 &ndash;&gt;
<script src="https://unpkg.com/element-ui/lib/index.js"></script>-->
<link rel="stylesheet" href="../js/index.css">
<script src="../js/vue.js"></script>
<script src="../js/index.js"></script>
<body>
    <div id="app">
        <span class="demonstration">显示总数</span>
        <el-pagination
                @size-change="handleSizeChange"
                @current-change="handleCurrentChange"
                :current-page.sync="currentPage1"
                :page-size="100"
                layout="total, prev, pager, next"
                :total="1000">
        </el-pagination>
    </div>
    <script>
        new Vue({
            el:"#app",
            methods:{
                handleCurrentChange(page){
                    alert(page)
                }
            }
        });
    </script>
</body>
</html>